import getlink from "@/api/getapi.js"
let find = {

    state: {
        arr: []
    },
    mutations: {
        setarr(state, payload) {
            state.arr = payload;
        }
    },
    actions: {
        getapi(context) {
            getlink("/mock/data/find1").then((ok) => {
                console.log(ok.data);
                context.commit("setarr", ok.data)
            })
        }
    }
}

export default find